package com.auto.sns.core.dao.impl;

import java.util.List;
import java.util.Map;

import com.system.common.Page;
import com.auto.sns.core.domain.SnsCoreReplyInfo;
import com.auto.sns.core.dao.ISnsCoreReplyInfoDAO;
import com.system.util.PersistUtil;
import com.auto.sns.core.sql.sqlid.SnsCoreReplyInfoSqlID;
/**
 * : t_auto_sns_core_reply_info
 * 
 * 
 * @author Gen
 */
public class SnsCoreReplyInfoDAOImpl implements ISnsCoreReplyInfoDAO{

	public SnsCoreReplyInfo insertSnsCoreReplyInfo(SnsCoreReplyInfo bean){
		return PersistUtil.insert(bean, SnsCoreReplyInfoSqlID.INSERT);
	}

	public boolean deleteSnsCoreReplyInfo(String scriGuid){
		PersistUtil.delete(scriGuid, SnsCoreReplyInfoSqlID.DELETE);
		return true;
	}	

	public SnsCoreReplyInfo updateSnsCoreReplyInfo(SnsCoreReplyInfo bean){
		return PersistUtil.update(bean, SnsCoreReplyInfoSqlID.UPDATE);
	}	

	public SnsCoreReplyInfo loadSnsCoreReplyInfo(String scriGuid){
		return PersistUtil.query(new SnsCoreReplyInfo().getClass(), scriGuid);
	}

	public List<SnsCoreReplyInfo> queryList(Map<String,Object> param,Page page){
		page.setCount(PersistUtil.countSpecial(param, SnsCoreReplyInfoSqlID.QUERY));
		return PersistUtil.querySpecial(param, SnsCoreReplyInfoSqlID.QUERY, page.getFullOrderBy(), page.getOffset(), page.getLimit());
	}

}
